class Cat:
    color = "black"

    def __init__(self, name):
        self.name = name

    def eat(self, food):
        self.foot = food
        print(self.name, "正在吃" + food)

    def print(self):
        print(self.name)


my_cat = Cat("byd")
my_cat.print()
